/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.rps.controller;

import bean.entity.Departments;
import bean.session.DepartmentSessionBean;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author servers
 */
@ManagedBean
@RequestScoped
public class DepartmentManagedBean {
    @EJB
    private DepartmentSessionBean departmentSessionBean;

    /** Creates a new instance of DepartmentManagedBean */
    public DepartmentManagedBean() {
    }
    public List<Departments> getfindAllDepart(){
        return departmentSessionBean.findAllDepart();
    }

    
}
